Skip to content

feat(tenant): add optional userId/loginId actor to generateSSOConfigurationLink#740

Merged
dorsha merged 2 commits into
mainfrom
feat/sso-config-link-actor
Jun 18, 2026
Merged

feat(tenant): add optional userId/loginId actor to generateSSOConfigurationLink#740
dorsha merged 2 commits into
mainfrom
feat/sso-config-link-actor

Conversation

@dorsha

@dorsha dorsha commented Jun 17, 2026

Copy link
Copy Markdown
Member

Description

management.tenant.generateSSOConfigurationLink now accepts optional trailing userId and loginId params. When provided, the SSO Setup Suite session is attributed to that real user (who must exist and belong to the tenant) so actions performed inside the suite are audited against them instead of the temporary user. userId takes precedence over loginId; omitting them preserves existing behavior.

Pairs with the backend change: descope/backend#1335 (resolves descope/etc#16281).

Changes

  • userId/loginId added to the method signature and request body.
  • README + unit test.

…rationLink

When provided, the SSO Setup Suite session is attributed to that real user (who must exist
and belong to the tenant) so actions taken inside the suite are audited against them instead
of a temporary user. userId takes precedence over loginId. Backward compatible (trailing
optional params).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shuni-bot-dev

shuni-bot-dev Bot commented Jun 17, 2026

Copy link
Copy Markdown

🐕 Review complete — View session on Shuni Portal 🐾

@shuni-bot-dev

shuni-bot-dev Bot commented Jun 17, 2026

Copy link
Copy Markdown

🐕 Suggested Reviewers

The review assignment prioritizes contributors who recently modified the same files (tenant.test.ts and tenant.ts) to ensure familiarity with the latest changes and testing considerations, while also including a contributor from README.md to cover documentation updates.

Reviewer Reason
aviadl Recent contributor with multiple commits across README.md, tenant.test.ts, and tenant.ts, indicating familiarity with the files and thorough understanding of the changes.
ruvenzx Contributed recently to tenant.test.ts and tenant.ts, suggesting expertise in testing and tenant management functionalities relevant to this change.
itaihanski Has recent commits to tenant.test.ts and tenant.ts, making them well-suited to review the logic and tests related to generateSSOConfigurationLink updates.
LioriE Contributed recently to tenant.test.ts and tenant.ts, offering insight into the recent modifications and overall code coverage.
oruis123 Contributed to the README.md, providing perspective on documentation updates related to the new feature.

Suggested by Shuni based on git history and PR context. Names are not @-mentioned to avoid notifying anyone — request a review from whoever fits best.

@shuni-bot-dev shuni-bot-dev Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐕 Shuni's Review

Adds optional trailing userId/loginId params to generateSSOConfigurationLink, attributing the SSO Suite session to a real user.

No issues found — good bones! The new params follow the existing optional-param pattern (ssoId/email/templateId), the request body stays consistent, and there's a matching unit test + README example. No other call sites or type defs need updating. Woof!

@dorsha dorsha enabled auto-merge (squash) June 17, 2026 12:17
@dorsha dorsha requested a review from aviadl June 17, 2026 12:19
…erateSSOConfigurationLink

The SSO Setup Suite link now takes an optional actorId that is recorded as-is as the audit
actor for in-suite actions (no user lookup/validation). Replaces the previous userId/loginId params.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dorsha

dorsha commented Jun 18, 2026

Copy link
Copy Markdown
Member Author

@shuni re-review

@shuni-bot-dev

shuni-bot-dev Bot commented Jun 18, 2026

Copy link
Copy Markdown

🐕 Review complete — View session on Shuni Portal 🐾

@shuni-bot-dev shuni-bot-dev Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐕 Shuni's Review

Adds optional trailing userId/loginId params to generateSSOConfigurationLink, attributing the SSO Suite session to a real user.

No issues found — good bones! The new params follow the existing optional-param pattern (ssoId/email/templateId), the request body stays consistent, and there's a matching unit test + README example. No other call sites or type defs need updating. Woof!

@dorsha dorsha merged commit c7351cf into main Jun 18, 2026
28 checks passed
@dorsha dorsha deleted the feat/sso-config-link-actor branch June 18, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants